09. Exercise: Constraint Layout

Constraint Layout

In this exercise, you will get to create the boarding pass design using a constraint layout.

Exercise Code

Exercise: T11.01-Exercise-ConstraintLayout

Constraint Layout

Now it's your turn to create the constraint layout and add the views and constraints to design the boarding pass app. Follow the TODOs in the code comments and check them off when you're done!

SOLUTION:
  • Add the compile dependency for the constraint layout
  • Replace the Relative layout with a ConstraintLayout
  • Create all the TextViews and ImageViews to match the design while adding the correct constraints as you go
  • Surround the Constraint layout with a ScrollView